package com.fs.controller.vo.price;

import lombok.Data;

import javax.validation.constraints.*;


/**
 * @author : ppx
 * @date : 10:17 2021/3/8
 */
@Data
public class ReqCreateRoomPrice {

    @NotNull
    @Min(value = 1,message = "roomId必须大于0")
    private Integer roomId;

    @NotNull
    @Min(value = 0)
    private Float price;

    @NotBlank
    @Pattern(regexp = "([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$",message = "开始时间格式应为 HH:mm:ss")
    private String beginDateTime;

    @NotBlank
    @Pattern(regexp = "([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$",message = "开始时间格式应为 HH:mm:ss")
    private String endDateTime;
}

